package com.yhty.dao;

import org.springframework.dao.EmptyResultDataAccessException;

import com.yhty.model.PayMent;
import com.yhty.model.Rent;

/**
 * 缴费记录dao接口
 * @author roy
 * 2011-3-27-下午05:53:32
 */
public interface PayDao {

	/**
	 * 添加缴费记录
	 * @param payMent
	 */
	public void add(PayMent payMent);
	
	/**
	 * 根据出租信息获取本月缴费记录
	 * @param rent
	 * @return
	 */
	public PayMent getByRent(Rent rent) throws EmptyResultDataAccessException;

	/**
	 * 根据ID更新本月缴费
	 * @param payMent
	 */
	public void updatePay(PayMent payMent);
	
	/**
	 * 根据ID更新本月缴欠费
	 * @param payMent
	 */
	public void updateOwe(PayMent payMent);
	
	/**
	 * 根据ID更新本月预缴费
	 * @param payMent
	 */
	public void updatePrepare(PayMent payMent);
}
